package com.example.entity.message;

import com.example.entity.body.Body;
import com.example.entity.header.Header;

import io.netty.buffer.ByteBuf;

public class Message {

	private Header header;
	private Body body;

	public <T extends Header> T getHeader() {
		return (T) header;

	};

	public <T extends Body> T getBody() {
		return (T) body;
	};

	public void setAttachment(ByteBuf buf) throws Exception {

	}

	public final void setHeader(Header header) {
		this.header = header;
	}

	public final void setBody(Body body) {
		this.body = body;
	};
	
	
}
